package cn.didi.feidi.javabackend.server.waterdeliver.dto;

import cn.didi.feidi.javabackend.mysql.jpa.waterDeliver.WaterDeTo;
import cn.didi.feidi.javabackend.mysql.jpa.waterDeliver.WaterDeliver;

import java.util.Date;

/**
 * Created by lindanpeng on 2017/7/16.
 */
public class LoginDto {
    private String password="";
    private String phoneNumber="";
    private String uid="";
    private String token="";
    private String facialFeature ="";
    private String facialUrl="";
    private String imei="";
    private String successSign="";
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getFacialFeature() {
        return facialFeature;
    }

    public void setFacialFeature(String facialFeature) {
        this.facialFeature = facialFeature;
    }

    public String getFacialUrl() {
        return facialUrl;
    }

    public void setFacialUrl(String facialUrl) {
        this.facialUrl = facialUrl;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getSuccessSign() {
        return successSign;
    }

    public void setSuccessSign(String successSign) {
        this.successSign = successSign;
    }

    public static LoginDto getInstanceByWaterDeliverAndToken(WaterDeliver waterDeliver, WaterDeTo waterDeTo){
        LoginDto loginDto=new LoginDto();
       // loginDto.setFacialFeature(waterDeliver.getFacialFeature());
      //  loginDto.setFacialUrl(waterDeliver.getFacialUrl());
        loginDto.setPassword(waterDeliver.getPassword());
        loginDto.setUid(waterDeliver.getWaterDeliverId());
        loginDto.setToken(waterDeTo.getToken());
        return loginDto;
    }
}
